package com.esd.shiro;

import org.apache.shiro.SecurityUtils;


public interface BaseService {
    default Long getUserId(){
        return getActiveUser().getUser().getUserId();
    }

    default ActiveUser getActiveUser(){
        return  (ActiveUser) SecurityUtils.getSubject().getPrincipal();
    }
}